package com.unhz.taigu.service.impl;

import com.unhz.generator.dao.LogisticsMapper;
import com.unhz.generator.pojo.Logistics;
import com.unhz.taigu.service.LogisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 曹显贵
 * @Description:
 * @Date: Created in 16:21 2018/2/2 0002
 * @Modified By:
 */
@Service
public class LogisticsServiceImpl implements LogisticsService {
    @Autowired
    private LogisticsMapper logisticsMapper;


    @Override
    public List<Logistics> selectByDeliveryId(Integer deliveryId) {
        return logisticsMapper.selectByDeliveryId(deliveryId);
    }

    @Override
    public int insertLogistics(Logistics logistics) {
        return logisticsMapper.insertSelective(logistics);
    }
}
